package com.xhh.edcservice;

import io.swagger.v3.oas.annotations.ExternalDocumentation;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Info;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @description:
 * API文档
 * http://localhost:8001/swagger-ui/index.html?url=/v3/api-docs#/
 * @author: wei-xhh
 * @create: 2020-09-27
 */
@OpenAPIDefinition(
        info = @Info(
                title = "开发文档",
                version = "1.0",
                description = "描述信息"
        ),
        externalDocs = @ExternalDocumentation(description = "参考文档",
                url = "https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Annotations"
        )
)
@SpringBootApplication
@ComponentScan(basePackages = {"com.xhh"})
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
    }
}
